﻿var React = require('react');

var Charge = React.createClass({
    propTypes: {
        initialData:  React.PropTypes.array
    },
    getInitialState: function() {
        return {data: []};
    },
    componentDidMount: function() {
            $(".brow").click( function () { 
                window.location.href = '../Charge/Pay?czxk=' + this.id;
                //$(this).hide();
            }); 
    },
    render: function() {
        return (

        <div className="container-fluid">
            {this.props.initialData.map(function (result) {
                return <div className="row brow" id={result.czxk}>
  <div className="col-xs-10"><p className="chargep">充{result.czxk},抵{result.czzsz}</p></div>
  <div className="col-xs-2"><p className="chargep">&gt;</p></div>
                </div>;
            })}
        
    </div>
 
    );
}
});

module.exports = Charge;